﻿@model IEnumerable<NewRen.Models.User>
@{
    ViewBag.Title = "牛人信息管理";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}
<script src="~/Scripts/jquery.datetimepicker.js"></script>
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>牛人管理</h2>
        <ol class="breadcrumb">
            <li>
                <a href="index.html">后台管理</a>
            </li>
            <li>
                <a>牛人管理</a>
            </li>
        </ol>
    </div>
</div>
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>牛人列表</h5>
                </div>
                <div class="ibox-content">
                    <form class="search">
                        检索：
                        <input type="text" name="Begin" class="textbox datetime nullable" placeholder="发布时间(大于)" value="@Request.QueryString["Begin"]" />
                        <input type="text" name="End" class="textbox datetime nullable" placeholder="发布时间(小于)" value="@Request.QueryString["End"]" />
                        <input type="text" name="Key" class="textbox nullable" placeholder="关键字" />
                        <input type="submit" class="btn btn-info" value="检索" />
                    </form>
                    <table class="table">
                        <thead>
                            <tr>
                                <th>编号</th>
                                <th>用户名</th>
                                <th>真实姓名</th>
                                <th>QQ</th>
                                <th>手机</th>
                                <th>注册时间</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach (var item in Model)
                            {
                                <tr id="@item.ID">
                                    <td>@item.ID</td>
                                    <td>@item.UserName</td>
                                    <td>@item.RealName</td>
                                    <td>@item.QQ</td>
                                    <td>@item.Phone</td>
                                    <td>@item.AddTime</td>
                                    <td>
                                        <a href="/Admin/NewRen/Show/@item.ID">查看详细</a>
                                        <a href="javascript:deleteDialog('/Admin/NewRen/Delete/@item.ID?sid=@ViewBag.SID',@item.ID);">删除</a>
                                        <a href="/Admin/NewRen/Edit/@item.ID">编辑</a>
                                        <a href="/Admin/NewRen/PriorityEdit/@item.ID">优先级编辑</a>
                                        <a href="/Admin/NewRen/VerifyEdit/@item.ID">编辑认证</a>
                                        @if (item.IsShow)
                                        {
                                            <a href="/Admin/NewRen/SetShow/@item.ID">设置不显示</a>
                                        }
                                        else
                                        {
                                            <a href="/Admin/NewRen/SetShow/@item.ID">设置显示</a>
                                        }
                                    </td>
                                </tr>
                            }
                        </tbody>
                    </table>
                    @Html.MakePager()
                </div>
            </div>
        </div>
    </div>
</div>


